avoid an unnecessary clone in without_prefix
authorJohann Tuffe <tafia973@gmail.com>
Mon, 13 Jul 2015 05:23:33 +0000 (13:23 +0800)
committerJohann Tuffe <tafia973@gmail.com>
Mon, 13 Jul 2015 05:23:33 +0000 (13:23 +0800)
commitb0f432296fe273af86f55450b3e2bdb453f5ed18
tree98d92e2d8a482ac4cc1e8688d73469333bdf6ba6
parent15b497b10c8261f09f15130595f696fcf29c3619
avoid an unnecessary clone in without_prefix

This is a very tiny optimization ...

An unnecessary clone was done because of matching on a tuple.
Checking items separately avoids it entirely.
src/cargo/util/paths.rs